package com.qt.service.oj;

import com.qt.pojo.dto.LoginDTO;
import com.qt.pojo.dto.PostResetPasswordDTO;
import com.qt.pojo.dto.RegisterDTO;
import com.qt.pojo.dto.ResetPasswordDTO;
import com.qt.result.R;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author pgw
 * @version 1.0
 * @description
 * @date Create by 2023/9/18 16:09
 */
public interface LoginService {


    R login(LoginDTO loginDTO , HttpServletRequest request , HttpServletResponse response);


    R getRegisterCode(String email);

    R register(RegisterDTO registerDTO);

    R resetPassword(ResetPasswordDTO resetPasswordDto);

    void logout();

    R postResetPassword(PostResetPasswordDTO postResetPasswordDto);
}
